package mastercard.assets.jpa;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the tbl_forma_alarma database table.
 * 
 */
@Entity
@Table(name="tbl_forma_alarma")
public class TblFormaAlarma implements Serializable {
	private static final long serialVersionUID = 1L;
	private int cveFormaAlarma;
	private int diasAlarma;
	private String email;
	private Timestamp fechaAlta;
	private byte horasAlarma;
	private byte status;
	private int tipo;
	private int tipoAlarma;
	private TblTarea tblTarea;
	private TblAlerta tblAlerta;
	private TblRole tblRole;
	private TblNivel tblNivel;

    public TblFormaAlarma() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="cve_forma_alarma", unique=true, nullable=false)
	public int getCveFormaAlarma() {
		return this.cveFormaAlarma;
	}

	public void setCveFormaAlarma(int cveFormaAlarma) {
		this.cveFormaAlarma = cveFormaAlarma;
	}


	@Column(name="dias_alarma", nullable=false)
	public int getDiasAlarma() {
		return this.diasAlarma;
	}

	public void setDiasAlarma(int diasAlarma) {
		this.diasAlarma = diasAlarma;
	}


	@Column(nullable=false, length=255)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}


	@Column(name="fecha_alta", nullable=false)
	public Timestamp getFechaAlta() {
		return this.fechaAlta;
	}

	public void setFechaAlta(Timestamp fechaAlta) {
		this.fechaAlta = fechaAlta;
	}


	@Column(name="horas_alarma", nullable=false)
	public byte getHorasAlarma() {
		return this.horasAlarma;
	}

	public void setHorasAlarma(byte horasAlarma) {
		this.horasAlarma = horasAlarma;
	}


	@Column(nullable=false)
	public byte getStatus() {
		return this.status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}


	@Column(nullable=false)
	public int getTipo() {
		return this.tipo;
	}

	public void setTipo(int tipo) {
		this.tipo = tipo;
	}


	@Column(name="tipo_alarma", nullable=false)
	public int getTipoAlarma() {
		return this.tipoAlarma;
	}

	public void setTipoAlarma(int tipoAlarma) {
		this.tipoAlarma = tipoAlarma;
	}


	//bi-directional many-to-one association to TblTarea
    @ManyToOne
	@JoinColumn(name="cve_tarea", nullable=false)
	public TblTarea getTblTarea() {
		return this.tblTarea;
	}

	public void setTblTarea(TblTarea tblTarea) {
		this.tblTarea = tblTarea;
	}
	

	//bi-directional many-to-one association to TblAlerta
    @ManyToOne
	@JoinColumn(name="cve_alerta", nullable=false)
	public TblAlerta getTblAlerta() {
		return this.tblAlerta;
	}

	public void setTblAlerta(TblAlerta tblAlerta) {
		this.tblAlerta = tblAlerta;
	}
	

	//bi-directional many-to-one association to TblRole
    @ManyToOne
	@JoinColumn(name="cve_role", nullable=false)
	public TblRole getTblRole() {
		return this.tblRole;
	}

	public void setTblRole(TblRole tblRole) {
		this.tblRole = tblRole;
	}
	

	//bi-directional many-to-one association to TblNivel
    @ManyToOne
	@JoinColumn(name="cve_nivel")
	public TblNivel getTblNivel() {
		return this.tblNivel;
	}

	public void setTblNivel(TblNivel tblNivel) {
		this.tblNivel = tblNivel;
	}
	
}